Repository navigation
fix(tools): List org releases when find_releases gets projectSlug all - #2428
Open
sentry-junior[bot] wants to merge 1 commit into
Open
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
find_releases took ParamProjectSlugOrAll, whose description tells agents
that lowercase `all` means every project, but passed the value through as
a slug. That sent GET /projects/{org}/all/releases/, which 404s with
"Project does not exist". Map `all` to no project, like the other tools
that take ParamProjectSlugOrAll.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
Author
|
A second MCP user report hit this bug (report count: 2).
This PR's checks pass and the pattern now has 2 reports, so I'm marking it ready for review. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
find_releasestakesParamProjectSlugOrAll, whose description tells agents that lowercaseallmeans every project. The handler passed the value straight through as a slug, and@sentry/apilistReleasesbuilds/projects/{org}/{projectSlug}/releases/wheneverprojectSlugis set. SoprojectSlug: "all"sentGET /api/0/projects/{org}/all/releases/, which Sentry answers with 404 "Project does not exist".This maps
allto no project, so the call goes to/organizations/{org}/releases/. That matches every other tool that takesParamProjectSlugOrAll(find_alert_rules,find_monitors,find_uptime_monitors,find_metric_monitors,get_alert_options,get_alert_rule). Project constraints are unaffected: the server injects them and removesprojectSlugfrom the input.via automation
evt_905b9c478746fd9deeb853f85ad7441b· Run IDdispatch_bd0e3bb51881131f8e573681226cb0ce.--
View Session [Sentry]